package com.jqgrid.controller;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.chpro.json.JSONUtil;
import com.chpro.orm.hibernate.ControllerBaseImpl;
import com.chpro.orm.hibernate.ServiceBase;
import com.jqgrid.entity.Student;
import com.jqgrid.service.StudentService;

@Controller
@RequestMapping(value="studentController")
public class StudentController extends ControllerBaseImpl<Student> {
	
	private StudentService studentService;

	@Resource(name="studentServiceImpl")
	public void setStudentService(StudentService studentService) {
		this.studentService = studentService;
	}

	@Override
	public ServiceBase<Student> getDao() {
		return studentService;
	}

}
